package com.pro.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

/**
 * ClassName:JsUserFeedback
 * Package:com.pro.pojo
 * Description: 意见反馈实体类
 *
 * @Date:2022/1/14 上午 11:31
 * @Author: WYH
 */
public class JsUserFeedback {
    private Integer feedbackId;//意见反馈主键
    private String feedbackContent;//意见反馈内容
    private Integer feedbackType;//意见反馈类型，2视频反馈，3商品反馈，4其他反馈
    private Integer feedbackStatus;//意见反馈状态，2已提交，3待审核，4.审核通过，5未提交，6.审核
    private String pictureUrl;//图片途径
    private Integer feedbackClassification;//意见分类，2很好，3好，4一般，5差
    private Integer userId;//用户id

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;//反馈时间

    private Integer updateId;//更新人

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateDate;//更新时间

    private String remarks;//备注

    private String trueName;

    public JsUserFeedback() {
    }

    public JsUserFeedback(Integer feedbackId, String feedbackContent, Integer feedbackType, Integer feedbackStatus, String pictureUrl, Integer feedbackClassification, Integer userId, Date createDate, Integer updateId, Date updateDate, String remarks) {
        this.feedbackId = feedbackId;
        this.feedbackContent = feedbackContent;
        this.feedbackType = feedbackType;
        this.feedbackStatus = feedbackStatus;
        this.pictureUrl = pictureUrl;
        this.feedbackClassification = feedbackClassification;
        this.userId = userId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.remarks = remarks;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setFeedbackId(Integer feedbackId) {
        this.feedbackId = feedbackId;
    }

    public void setFeedbackContent(String feedbackContent) {
        this.feedbackContent = feedbackContent;
    }

    public void setFeedbackType(Integer feedbackType) {
        this.feedbackType = feedbackType;
    }

    public void setFeedbackStatus(Integer feedbackStatus) {
        this.feedbackStatus = feedbackStatus;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public void setFeedbackClassification(Integer feedbackClassification) {
        this.feedbackClassification = feedbackClassification;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getFeedbackId() {
        return feedbackId;
    }

    public String getFeedbackContent() {
        return feedbackContent;
    }

    public Integer getFeedbackType() {
        return feedbackType;
    }

    public Integer getFeedbackStatus() {
        return feedbackStatus;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public Integer getFeedbackClassification() {
        return feedbackClassification;
    }

    public Integer getUserId() {
        return userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    @Override
    public String toString() {
        return "JsUserFeedback{" +
                "feedbackId=" + feedbackId +
                ", feedbackContent='" + feedbackContent + '\'' +
                ", feedbackType=" + feedbackType +
                ", feedbackStatus=" + feedbackStatus +
                ", pictureUrl='" + pictureUrl + '\'' +
                ", feedbackClassification=" + feedbackClassification +
                ", userId=" + userId +
                ", createDate=" + createDate +
                ", updateId=" + updateId +
                ", updateDate=" + updateDate +
                ", remarks='" + remarks + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JsUserFeedback that = (JsUserFeedback) o;
        return Objects.equals(feedbackId, that.feedbackId) &&
                Objects.equals(feedbackContent, that.feedbackContent) &&
                Objects.equals(feedbackType, that.feedbackType) &&
                Objects.equals(feedbackStatus, that.feedbackStatus) &&
                Objects.equals(pictureUrl, that.pictureUrl) &&
                Objects.equals(feedbackClassification, that.feedbackClassification) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(createDate, that.createDate) &&
                Objects.equals(updateId, that.updateId) &&
                Objects.equals(updateDate, that.updateDate) &&
                Objects.equals(remarks, that.remarks);
    }

    @Override
    public int hashCode() {
        return Objects.hash(feedbackId, feedbackContent, feedbackType, feedbackStatus, pictureUrl, feedbackClassification, userId, createDate, updateId, updateDate, remarks);
    }
}
